﻿using Apps.Common;
using Apps.Models;
using Apps.Models.PUB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apps.BLL.PUB
{
    public partial class PUB_SUPPLIERBLL
    {
        public List<PUB_SUPPLIERModel> GetAllPubSupplierb(ref GridPager pager)
        {
            IQueryable<PUB_SUPPLIER> queryData = null;
            queryData = m_Rep.GetList(p => p.ENABLED);
            pager.totalRows = queryData.Count();
            queryData = LinqHelper.SortingAndPaging(queryData, pager.sort, pager.order, pager.page, pager.rows);
            return CreateModelList(ref queryData);
        }
    }
}
